<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<div class="easyui-layout" data-options="fit:true,border:false" >
     <div data-options="region:'center',border:false" title="设备维修列表">
		 <table id="maintaingrid" style="display:none">
			    <thead>
			        <tr>
			        	<th data-options="field:'item',checkbox:true,width:50"></th>
			        	<th data-options="field:'equipCode',align:'center',width:100">设备编码</th>
			            <th data-options="field:'equipName',width:100,sortable:true">设备名称</th>
			            <th data-options="field:'themeName',width:100,sortable:true">主题</th>
						<th data-options="field:'maintainTimeStr',width:100,sortable:true">维护时间</th>
						<th data-options="field:'record',width:100,sortable:true">记录</th>
			            <th data-options="field:'conclusion',width:100,sortable:true">结论</th>
			            <th data-options="field:'workmanName',width:100,sortable:true">维护人</th>
						<th data-options="field:'workmanCode',width:100,sortable:true">维护人编码</th>
						<th data-options="field:'attachmentName',width:100,sortable:true">附件</th>
			        </tr>
			    </thead>
		 </table>
     </div>
</div>
<div id="maintaingrid-toolbar" style="display:block">
	<input type="hidden" id="maintainEquipId" name="equipId"/>
	<a id="addMaintain" onclick="addMaintain();" class="easyui-linkbutton l-btn l-btn-small l-btn-plain" group="">
		<span class="l-btn-left l-btn-icon-left">
			<span class="l-btn-text" style="margin-left:5px;">添加</span>
			<span class="l-btn-icon icon-add">&nbsp;</span>
		</span>
	</a>
	<a id="deleteMaintain" onclick="deleteMaintain();" class="easyui-linkbutton l-btn l-btn-small l-btn-plain" group="">
		<span class="l-btn-left l-btn-icon-left">
			<span class="l-btn-text" style="margin-left:5px;">删除</span>
			<span class="l-btn-icon icon-remove">&nbsp;</span>
		</span>
	</a>
	<a id="downloadMaintain" onclick="downloadMaintain();" class="easyui-linkbutton l-btn l-btn-small l-btn-plain" group="">
		<span class="l-btn-left l-btn-icon-left">
			<span class="l-btn-text" style="margin-left:5px;">下载附件</span>
			<span class="l-btn-icon icon-download">&nbsp;</span>
		</span>
	</a>

</div>
<script type="text/javascript" src="<c:url value='/scripts/web/data/equip_maintain/maintain.js'/>"></script>